dbca1f5b672783e7f96d854f8b5317508b23d930,advanced/src/java/org/neo4j/impl/shell/apps/Ls.java,Ls,displayRelationships,#NodeOrRelationship#Output#boolean#Direction#String#String#String#boolean#boolean#,187

Before Change


        String postfixString, String filter, boolean caseSensitiveFilters,
        boolean exactFilterMatch ) throws ShellException, RemoteException
    {
        Pattern typeFilter = newPattern( filter, caseSensitiveFilters );
        for ( Relationship rel : thing.getRelationships( direction ) )
        {
            String type = rel.getType().name();
            if ( !matches( typeFilter, type, caseSensitiveFilters,
                exactFilterMatch ) )
            {
                continue;
            }

After Change


    private void displayRelationships( NodeOrRelationship thing,
        Output out, boolean verbose, Direction direction, String prefixString,
        String postfixString, Map<String, Object> filterMap,
        boolean caseInsensitiveFilters, boolean looseFilters )
        throws ShellException, RemoteException
    {
        for ( Relationship rel : thing.getRelationships( direction ) )
        {
            String type = rel.getType().name();
            boolean matches = filterMap.isEmpty();
            for ( String filter : filterMap.keySet() )
            {
                if ( matches( newPattern( filter, caseInsensitiveFilters ),
                    type, caseInsensitiveFilters, looseFilters ) )
                {
                    matches = true;
                    break;
                }
            }
            
            if ( !matches )
            {
                continue;
            }